package com.plan
/**
 * The ProjectPlan entity.
 *
 * @author  michael.geng  mokesoft
 *
 *
 */
class ProjectPlan {
    static mapping = {
         table 'pm_project_plan'
         // version is set to false, because this isn't available by default for legacy databases
         version true
         id generator:'identity', column:'ID'
    }
    Long id
    String creater
    Date dateCreated
    java.math.BigDecimal finishedRate
    java.math.BigDecimal finishedSum
    Date lastUpdated
    java.math.BigDecimal planDate
    Date planEndDate
    Date planStartDate
    String planStatus
    String quantitiesName
    java.math.BigDecimal realDate
    Date realEndDate
    String realResult
    Date realStartDate
    String remark
    String spec
    Integer status
    String str1
    String str2
    String subject
    java.math.BigDecimal sum
    String system
    String systemName
    String unit

    static constraints = {
        system(size: 0..50)
        systemName(size: 0..50)
        subject(size: 0..50)
        quantitiesName(size: 0..100)
        spec(size: 0..100)
        unit(size: 0..50)
        sum(nullable: true)
        finishedSum(nullable: true)
        finishedRate(nullable: true)
        planDate(nullable: true)
        planStartDate(nullable: true)
        planEndDate(nullable: true)
        planStatus(size: 0..20)
        realDate(nullable: true)
        realEndDate(nullable: true)
        realResult(size: 1..50)
        realStartDate(nullable: true)
        creater(size: 1..30, blank: false)
        status(nullable: true, max: 2147483647)
        dateCreated()
        lastUpdated()
        remark(nullable: true)
        str1(nullable: true)
        str2(nullable: true)
    }
    String toString() {
        return "${id}" 
    }
}
